package com.gym.client;

import com.gym.pojo.Lose;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

@FeignClient(name = "gateway",path = "/lose-provider",contextId = "lose-provider")
public interface LoseClient {
    @RequestMapping("/select")
    public Map<String,Object> selectlose(@RequestParam String losename, @RequestParam int page, @RequestParam int limit);
    @RequestMapping("/selectlosename")
    public Lose selectlosename(@RequestParam String losename);
    @RequestMapping("/insert")
    public boolean insert(@SpringQueryMap Lose lose);
    @RequestMapping("/update")
    public boolean update(@SpringQueryMap Lose lose);
    @RequestMapping("/delete")
    public boolean delete(@RequestParam(name = "loseId") int loseId);
}
